From: Ian Campbell Date: Tue, 11 Jan 2011 18:15:18 +0000 (+0000) Subject: libxl: write PCI frontend xenstore nodes to the frontend directory. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10931^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=63f600a36247a1f75bc3d8ae6f4baceb3e1b3ee0;p=xen.git libxl: write PCI frontend xenstore nodes to the frontend directory. They accidentally got moved to the backend directory by 22680:03718b569d97. Signed-off-by: Ian Campbell Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 85d3be85e2..15c0e33f64 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -261,9 +261,11 @@ static int libxl_create_pci_backend(libxl__gc *gc, uint32_t domid, libxl_device_ flexarray_append(back, libxl__sprintf(gc, "msitranslate=%d,power_mgmt=%d", pcidev->msitranslate, pcidev->power_mgmt)); flexarray_vappend(back, libxl__sprintf(gc, "state-%d", i), libxl__sprintf(gc, "%d", 1), NULL); } - flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num), - "backend-id", libxl__sprintf(gc, "%d", 0), - "state", libxl__sprintf(gc, "%d", 1), NULL); + flexarray_vappend(back, "num_devs", libxl__sprintf(gc, "%d", num)); + + flexarray_vappend(front, + "backend-id", libxl__sprintf(gc, "%d", 0), + "state", libxl__sprintf(gc, "%d", 1), NULL); libxl__device_generic_add(ctx, &device, libxl__xs_kvs_of_flexarray(gc, back, back->count),